const { plugin } = require("../../../../common/utils")
const { createTask } = require("../../aaa")
const GameControlTask = {
    coward: {},
    dungeons: {},
    refreshCoward: function() {

    },
    attackMonster: function() {

    },
    pickupReward: function() {

    },
    gotoNextRoom: function() {

    },
    action: function() {
        let capture = images.captureScreen()
        if (capture == undefined) {
            return 
        }
        let bitmap = capture.getBitmap()
        let result = plugin.detect(bitmap, 0.8)
        let objects = {}
        for (let obj of result) {
            if (objects[obj.label] == undefined) {
                objects[obj.label] = []
            }
            objects[obj.label].push(obj)
        }
    }
}
const createGameControlTask = (properties) => createTask(
    {
    }
)